package com.surfilter.bean;

import java.sql.Timestamp;

import org.apache.commons.lang.StringUtils;

/**
 * 实体类：查询任务
 * 
 * @date 2017-1-12
 * @author Zhaoqifeng
 */
public class QueryTask extends Public{
	private Long id; //主键id
	private String task_Name; //任务名称
	private String user_Name; //用户名称
	private String account; //账号
	private String src_Ip; //源IP
	private String des_Ip; //目的IP
	private Integer src_Port; //源端口
	private Integer des_Port; //目的端口
	private Timestamp start_Time; //开始时间
	private Timestamp end_Time; //结束时间
	private Timestamp operation_Time; //操作时间
	private Integer operation_Type; //操作类型
	private Integer status; //状态
	private String statusStr; //状态字符串
	private long[] statuss; //状态数组
	private String contact_Name; //联系人名称
	private String contact_Phone; //联系人电话
	private String contact_Account; //联系人账号
	private String shenid_Number; //联系人身份证号
	private String contact_Begin_Time; //开始时间
	private Integer city_Id; //省市id
	private String city_Name; //城市名称
	private String license; //批准文号
	private String url; //url
	private String has_Static_Ip; //有无静态IP信息(null,0表示没有，1表示有，默认为0)
	private String domain; //域名
	private String website_Name; //网站名
	private Long result_Cnt; //结果总数
	private Long audit_Id; //审批人ID
	private Integer telecomvendor_Id; //运营商id
	private String telecomvendor_Name; //运营商名称
	private Integer match_Mode; //匹配方式
	private Integer net_Type; //账号类型
	private String telecom; //运营商
	private Integer audit_Type; //审批策略(1：地市审批；2：地市——省级联合审批；3：省级审批)
	private Integer post; //任务是否发送至省级系统(1：已发送；0：未发送)
	private Integer city_Info; //地市(省)ID
	private String city_Info_Name; //城市名称
	private String emergency; //紧急程度
	private Long set_Id; //地市任务ID
	private String serial; //用户序列号
	private String message; //消息
	private long[] messages; //批量ID数组
	private Long user_Id; //用户id
	private Integer is_Predict; //是否预测
	private Integer remark; //标记
	private Long parent_Id;
	private String relation_Status;
	private String lac; //位置LAC
	private String ci; //位置CI
	private String pri_Ip; //私网IP
	private String uin; //微信ID
	private String identityConfig;//虚拟身份(虚拟身份溯源规则)
	private String identityConfig_role;//虚拟身份(虚拟身份溯源规则)
	private String virtual_Name; //虚拟身份名称
	private Long virtual_Id; //虚拟身份ID
	private String virtual; //虚拟身份
	private String type;
	private String keyword_type;
	private String keyword;
	private String keyword2_type;
	private String keyword2;
	private String level;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTask_Name() {
		return task_Name;
	}

	public void setTask_Name(String taskName) {
		task_Name = taskName;
	}

	public String getUser_Name() {
		return user_Name;
	}

	public void setUser_Name(String userName) {
		user_Name = userName;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getSrc_Ip() {
		return src_Ip;
	}

	public void setSrc_Ip(String srcIp) {
		src_Ip = srcIp;
	}

	public String getDes_Ip() {
		return des_Ip;
	}

	public void setDes_Ip(String desIp) {
		des_Ip = desIp;
	}

	public Integer getSrc_Port() {
		return src_Port;
	}

	public void setSrc_Port(Integer srcPort) {
		src_Port = srcPort;
	}

	public Integer getDes_Port() {
		return des_Port;
	}

	public void setDes_Port(Integer desPort) {
		des_Port = desPort;
	}

	public Timestamp getStart_Time() {
		return start_Time;
	}

	public void setStart_Time(Timestamp startTime) {
		start_Time = startTime;
	}

	public Timestamp getEnd_Time() {
		return end_Time;
	}

	public void setEnd_Time(Timestamp endTime) {
		end_Time = endTime;
	}

	public Timestamp getOperation_Time() {
		return operation_Time;
	}

	public void setOperation_Time(Timestamp operationTime) {
		operation_Time = operationTime;
	}

	public Integer getOperation_Type() {
		return operation_Type;
	}

	public void setOperation_Type(Integer operationType) {
		operation_Type = operationType;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getStatusStr() {
		return statusStr;
	}

	public void setStatusStr(String statusStr) {
		this.statusStr = statusStr;
		long[] statuss = null;
		if(StringUtils.isNotBlank(statusStr)) {
			if(statusStr.indexOf(",") != -1) {
				String[] split = statusStr.split(",");
				int length = split.length;
				statuss = new long[length];
				for(int i=0; i<length; i++) {
					statuss[i] = Long.parseLong(split[i]);
				}
			}else {
				statuss = new long[1];
				statuss[0] = Long.parseLong(statusStr);
			}
		}
		this.statuss = statuss;
	}

	public long[] getStatuss() {
		return statuss;
	}

	public void setStatuss(long[] statuss) {
		this.statuss = statuss;
	}

	public String getContact_Name() {
		return contact_Name;
	}

	public void setContact_Name(String contactName) {
		contact_Name = contactName;
	}

	public String getContact_Phone() {
		return contact_Phone;
	}

	public void setContact_Phone(String contactPhone) {
		contact_Phone = contactPhone;
	}

	public String getContact_Account() {
		return contact_Account;
	}

	public void setContact_Account(String contactAccount) {
		contact_Account = contactAccount;
	}

	public String getShenid_Number() {
		return shenid_Number;
	}

	public void setShenid_Number(String shenidNumber) {
		shenid_Number = shenidNumber;
	}

	public String getContact_Begin_Time() {
		return contact_Begin_Time;
	}

	public void setContact_Begin_Time(String contactBeginTime) {
		contact_Begin_Time = contactBeginTime;
	}

	public Integer getCity_Id() {
		return city_Id;
	}

	public void setCity_Id(Integer cityId) {
		city_Id = cityId;
	}

	public String getCity_Name() {
		return city_Name;
	}

	public void setCity_Name(String cityName) {
		city_Name = cityName;
	}

	public String getLicense() {
		return license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getHas_Static_Ip() {
		return has_Static_Ip;
	}

	public void setHas_Static_Ip(String hasStaticIp) {
		has_Static_Ip = hasStaticIp;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public String getWebsite_Name() {
		return website_Name;
	}

	public void setWebsite_Name(String websiteName) {
		website_Name = websiteName;
	}

	public Long getResult_Cnt() {
		return result_Cnt;
	}

	public void setResult_Cnt(Long resultCnt) {
		result_Cnt = resultCnt;
	}

	public Long getAudit_Id() {
		return audit_Id;
	}

	public void setAudit_Id(Long auditId) {
		audit_Id = auditId;
	}

	public Integer getTelecomvendor_Id() {
		return telecomvendor_Id;
	}

	public void setTelecomvendor_Id(Integer telecomvendorId) {
		telecomvendor_Id = telecomvendorId;
	}

	public String getTelecomvendor_Name() {
		return telecomvendor_Name;
	}

	public void setTelecomvendor_Name(String telecomvendorName) {
		telecomvendor_Name = telecomvendorName;
	}

	public Integer getMatch_Mode() {
		return match_Mode;
	}

	public void setMatch_Mode(Integer matchMode) {
		match_Mode = matchMode;
	}

	public Integer getNet_Type() {
		return net_Type;
	}

	public void setNet_Type(Integer netType) {
		net_Type = netType;
	}

	public String getTelecom() {
		return telecom;
	}

	public void setTelecom(String telecom) {
		this.telecom = telecom;
	}

	public Integer getAudit_Type() {
		return audit_Type;
	}

	public void setAudit_Type(Integer auditType) {
		audit_Type = auditType;
	}

	public Integer getPost() {
		return post;
	}

	public void setPost(Integer post) {
		this.post = post;
	}

	public Integer getCity_Info() {
		return city_Info;
	}

	public void setCity_Info(Integer cityInfo) {
		city_Info = cityInfo;
	}

	public String getCity_Info_Name() {
		return city_Info_Name;
	}

	public void setCity_Info_Name(String cityInfoName) {
		city_Info_Name = cityInfoName;
	}

	public String getEmergency() {
		return emergency;
	}

	public void setEmergency(String emergency) {
		this.emergency = emergency;
	}

	public Long getSet_Id() {
		return set_Id;
	}

	public void setSet_Id(Long setId) {
		set_Id = setId;
	}

	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		long[] messages = null;
		if(StringUtils.isNotBlank(message)) {
			if(message.indexOf(",") != -1) {
				String[] split = message.split(",");
				int length = split.length;
				messages = new long[length];
				for(int i=0; i<length; i++) {
					messages[i] = Long.parseLong(split[i]);
				}
			}else {
				messages = new long[1];
				messages[0] = Long.parseLong(message);
			}
		}
		this.messages = messages;
		this.message = message;
	}

	public long[] getMessages() {
		return messages;
	}

	public void setMessages(long[] messages) {
		this.messages = messages;
	}

	public Long getUser_Id() {
		return user_Id;
	}

	public void setUser_Id(Long userId) {
		user_Id = userId;
	}

	public Integer getIs_Predict() {
		return is_Predict;
	}

	public void setIs_Predict(Integer isPredict) {
		is_Predict = isPredict;
	}

	public Integer getRemark() {
		return remark;
	}

	public void setRemark(Integer remark) {
		this.remark = remark;
	}

	public Long getParent_Id() {
		return parent_Id;
	}

	public void setParent_Id(Long parentId) {
		parent_Id = parentId;
	}

	public String getRelation_Status() {
		return relation_Status;
	}

	public void setRelation_Status(String relationStatus) {
		relation_Status = relationStatus;
	}

	public String getLac() {
		return lac;
	}

	public void setLac(String lac) {
		this.lac = lac;
	}

	public String getCi() {
		return ci;
	}

	public void setCi(String ci) {
		this.ci = ci;
	}

	public String getPri_Ip() {
		return pri_Ip;
	}

	public void setPri_Ip(String priIp) {
		pri_Ip = priIp;
	}

	public String getUin() {
		return uin;
	}

	public void setUin(String uin) {
		this.uin = uin;
	}

	public String getVirtual_Name() {
		return virtual_Name;
	}

	public void setVirtual_Name(String virtualName) {
		virtual_Name = virtualName;
	}

	public Long getVirtual_Id() {
		return virtual_Id;
	}

	public void setVirtual_Id(Long virtualId) {
		virtual_Id = virtualId;
	}

	public String getVirtual() {
		return virtual;
	}

	public void setVirtual(String virtual) {
		this.virtual = virtual;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getKeyword_type() {
		return keyword_type;
	}

	public void setKeyword_type(String keywordType) {
		keyword_type = keywordType;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getKeyword2_type() {
		return keyword2_type;
	}

	public void setKeyword2_type(String keyword2Type) {
		keyword2_type = keyword2Type;
	}

	public String getKeyword2() {
		return keyword2;
	}

	public void setKeyword2(String keyword2) {
		this.keyword2 = keyword2;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getIdentityConfig() {
		return identityConfig;
	}

	public void setIdentityConfig(String identityConfig) {
		this.identityConfig = identityConfig;
	}

	public String getIdentityConfig_role() {
		return identityConfig_role;
	}

	public void setIdentityConfig_role(String identityConfigRole) {
		identityConfig_role = identityConfigRole;
	}
}
